package backstage.app.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import backstage.app.entity.Student;
import backstage.app.mapper.StudentMapper;
import backstage.app.service.StudentService;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {
	
	@Autowired
	private StudentMapper studentMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer sid) {
		 
		return studentMapper.deleteByPrimaryKey(sid);
	}

	@Override
	public int insertSelective(Student student) {
		// TODO Auto-generated method stub
		return studentMapper.insertSelective(student);
	}

	@Override
	public Student selectByPrimaryKey(Integer sid) {
		// TODO Auto-generated method stub
		return studentMapper.selectByPrimaryKey(sid);
	}

	@Override
	public int updateByPrimaryKey(Student student) {
		// TODO Auto-generated method stub
		return studentMapper.updateByPrimaryKey(student);
	}

}
